package com.dubbo.springboot.snail.service;

import com.dubbo.springboot.snail.IUserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author xueguoping
 * @description: TODO
 * @date 2021/4/28 21:57
 */
@Service
public class UserServiceImpl implements IUserService {
    @Value("${dubbo.application.name}")
    private String serviceName;

    public String sayHello(String name) {
        return String.format("[%s]:Hello,%s",serviceName,name);
    }
}
